package Odinote::Document;

use strict;
use warnings;

sub new { return bless({doc => undef}, shift)->_init(shift); }

sub _init
{
  my $self = shift;
  $self->{doc} = shift;
  return $self;
}

sub open
{
  my $self = shift;
  print(($self->{doc}) ? $self->{doc} : "", "\n", "Got here.\n");
  Odinote::DocTabs->add_document($self->{doc});
}

1;
